package com.android.PopFax;

import java.util.ArrayList;
import java.util.HashMap;

import android.util.Log;



public class ParsedExampleDataSet { 

	private int extractedInt = 0;
	public int rowCount=0;

	private String fax_id = new String();
	private String fax_from = new String();
	private String fax_date = new String();
	private String fax_pages = new String();

	ArrayList<ArrayList<String>> data;
	

	public void setFax_id(String faxId) {
		
		fax_id = faxId;
	}
	

	public void setFax_from(String faxFrom) {
		
		fax_from = faxFrom;
	}

	public void setFax_date(String faxDate) {
		
		fax_date = faxDate;
	}

	public void setFax_pages(String faxPages) {
		
		fax_pages = faxPages;
	}

	public ArrayList<ArrayList<String>> getRowWiseData() { 
		return data; 
	}


	public void rowWiseDataBindIntoHashMap() { 
		
		
		
		ArrayList <String>  extractedString = new ArrayList<String>();
		Log.d("before row count","lets check");
		extractedString.add(fax_id);
		extractedString.add(fax_from);
		extractedString.add(fax_date);
		extractedString.add(fax_pages);
		if(rowCount==0)
		{
			data = new ArrayList<ArrayList<String>>();
		
		}
		
		data.add(extractedString);
		System.out.println(extractedString);
		System.out.println(data.get(0).get(0));
	//	extractedString.clear();
		
		Log.d("after row count","lets check");
		rowCount++;
	}
	/*        	 
         System.out.println(extractedString);
          Log.d("extracted string",extractedString.toString());
	 */    

	public int getExtractedInt() { 
		return extractedInt; 
	} 
	public void setExtractedInt(int extractedInt) { 
		this.extractedInt = extractedInt; 
		Log.d("extracted Int",(new Integer(extractedInt)).toString());
	} 

	public int intReturn()
	{
		return this.extractedInt;
	}
}